﻿using Deixei.Infrastructure;
using Deixei.Web;
using Deixei.Web.Controllers;
using Deixei.WebApi.Controllers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Microsoft.Practices.Unity;

namespace Deixei.WebApi
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class WebApiApplication : DeixeiHttpApplication
    {
        protected void Application_Start()
        {
            base.Initialise(IsWebApi: true);

            DeixeiContainer.Container.RegisterType<DeixeiApiController, CustomersController>("Customers");
            DeixeiContainer.Container.RegisterType<DeixeiApiController, IngredientsController>("Ingredients");
            DeixeiContainer.Container.RegisterType<DeixeiApiController, TestController>("Test");
            DeixeiContainer.Container.RegisterType<DeixeiApiController, ValuesController>("Values");
        }
    }
}